/**
 *Controller class for the Control collection.
 */
package ControlLayer;
//control layer package has to be imported
public class ControlCollector
{
    private AddressCtr addrCtr;
    private DVDCtr dvdCtr;
    private LoanCtr loanCtr;

    /**
     * Constructor for objects of class ControlCollector
     */
    public ControlCollector()
    {
        addrCtr = new AddressCtr();
        dvdCtr = new DVDCtr();
        loanCtr = new LoanCtr(addrCtr, dvdCtr);

    }
    
    /**
     * This returns the control for the AddressCtr
     */
    public AddressCtr getA()
    {
        return addrCtr;
    }
    
    /**
     * This returns the control for the DVDCtr
     */
    public DVDCtr getD()
    {
        return dvdCtr;
    }
    
    /**
     * This returns the control for the LoanCtr
     */
    public LoanCtr getL()
    {
        return loanCtr;
    }

}
